export const sexpieoption = {
  title: {
    text: '活跃用户性别分布',
    left: 'center'
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'vertical',
    left: 'left'
  },
  series: [
    {
      name: '性别分布',
      type: 'pie',
      radius: '55%',
      data: [
        { value: 1048, name: '男' },
        { value: 735, name: '女' },
        { value: 580, name: '保密' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
}


export const agebaroptions = {
  title: {
    text: '活跃用户年龄占比',
    left: 'center'
  },
  tooltip: {
    trigger: 'item',
    formatter:({name,data})=>`分段：${name}<br>占比：${(data*100).toFixed(2)}%`
  },
  angleAxis: {
    max: 1,
    startAngle: 30,
  },
  radiusAxis:{
    type: 'category',
    data: ['18岁以下', '18到22岁', '23到26岁', '27到30岁', '30岁以上'],
    z: 10
  },
  polar: {
    radius: '55%',
  },
  series: [
    {
      type: 'bar',
      data: [0.3345,0.3184,0.1585,0.1459,0.0425],
      coordinateSystem: 'polar',
      name: '活跃用户年龄占比',
      itemStyle: {
        borderColor: 'red',
        opacity: 0.8,
        borderWidth: 1
      }
    },
  ]
};